﻿using GEPL.ViewModels;
using System.Windows.Controls;

namespace GEPL.Projects.UserControls
{
    /// <summary>
    /// Interaction logic for TurtleControl.xaml
    /// </summary>
    public partial class TurtleControl : UserControl
    {
        public TurtleControl()
        {
            InitializeComponent();
        }

        /// <summary>
        /// Creates a Turtle object that uses this control as an output
        /// </summary>
        /// <returns>New Turtle object</returns>
        public TurtleOutput GetTurtle(TurtleProjectSettingsModel settings)
        {
            return new TurtleOutput(OutputImage, settings);
        }
    }
}